<?php
/**
 * Created by PhpStorm.
 * User: wuz
 * Date: 2016/8/11
 * Time: 16:13
 */
session_start();
if (!(isset($_SESSION['userName']))) {
    header("Location:Login.php");
}
echo "恩，是的，我就是首页" . "<br>";
echo "欢迎你！" . $_SESSION['userName'];
echo "注销登录" . '<a href = "Login.php?action=logout">注销</a>';
